package com.yys.apm.service.impl;

import com.yys.apm.entity.PubCity;
import com.yys.apm.mapper.PubCityMapper;
import com.yys.apm.service.ISayHello;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Yingsheng Ye
 */
@Service
public class SayHelloImpl implements ISayHello {

    @Autowired
    private PubCityMapper pubCityMapper;

    @Override
    public String sayHello(String name) {
        return "say hello " + name;
    }

    @Override
    public List<PubCity> list() {
        return pubCityMapper.selectList(null);
    }
}
